package org.lightrpc.format;

import org.lightrpc.Response;

/**
 * Implementations of this interface can serialize and deserialize different
 * types of java objects.
 * 
 * @author miku
 * 
 */
public interface DataSerializer {

	<T> T deserialize(Response object, Class<T> clazz)
			throws SerializationFailedException;

	Response serialize(Response response, Object object);

}
